package com.neuedu.dao;

import java.util.List;
import java.util.Map;

import com.neuedu.model.Admin;
public interface AdminDao {
	
	public int countAdmin();
	public List<Admin> findAll(Map<String, Object> map);
	public int addAdmin(Admin u);
	public int updateAdmin(Admin u);
	public int deleteAdmin(int id);
	
	/**
	 * 登录使用，用于根据账号密码，密码登录
	 * @param u
	 * @return
	 */
	public Admin findAdminByName(Admin u);


}
